<?php


$map->add('crud_home', '/crud', array(
    'values' => array(
        'controller' => 'CRUD',
        'action'    => 'index'
    ),
));

$map->add('crud_entity', '/crud/entity/{:name}', array(
    'values' => array(
        'controller' => 'CRUD',
        'action'    => 'show' 
    ),
));


$map->add('crud_create', '/crud/entity/{:name}/create', array(
    'values' => array(
        'controller' => 'CRUD',
        'action'    => 'create' 
    ),
));


$map->add('crud_read', '/crud/entity/{:name}/read/{:id}', array(
    'values' => array(
        'controller' => 'CRUD',
        'action'    => 'read' 
    ),
));


$map->add('crud_update', '/crud/entity/{:name}/update/{:id}', array(
    'values' => array(
        'controller' => 'CRUD',
        'action'    => 'update' 
    ),
));


$map->add('crud_delete', '/crud/entity/{:name}/delete/{:id}', array(
    'values' => array(
        'controller' => 'CRUD',
        'action'    => 'delete' 
    ),
));